package de.fhkoeln.avs.main;

import java.io.File;
import java.io.IOException;
import java.util.List;

import com.infinitegraph.ConfigurationException;
import com.infinitegraph.StorageException;
import com.infinitegraph.indexing.IndexException;

import de.fhkoeln.avs.reader.DataReader;
import de.fhkoeln.avs.reader.TestfileDateReaderImpl;
import de.fhkoeln.avs.storage.HashMapTmpWordStorageImpl;
import de.fhkoeln.avs.storage.TmpStorage;

public class Main {

	public static void main(String [ ] args) throws IOException, StorageException, ConfigurationException, IndexException{
		File file = new File("Test.txt");//Datenquelle.aur
		TmpStorage<String, List<String>> storage = new HashMapTmpWordStorageImpl();
		DataReader dataReader = new TestfileDateReaderImpl
				(file, "\n", ",");
		
		GraphBuildController controller = 
				new GraphBuildController(dataReader, storage);
		
		controller.buildGraph();
	}
	
}
